(function(global){
	var ua = navigator.userAgent;
	var isWx = ua.indexOf('MicroMessenger') != -1;

	if(!isWx){
		var wx = {
			config: function(prop){
				this.prop = prop;
			}, 

			ready: function(fn){
				$(fn);
			}, 

			scanQRCode: function(prop){
				prop.success({resultStr: 'http://tech11.cn:8888/wx/yoka/card-swipe?1=1&scanerId=1'});
			}, 

			chooseWXPay: function(prop){
				prop.success({});
			}, 

			chooseImage: function(prop){
				prop.success({localIds: ['/wx/ind/img/userheader.png']});
			}, 

			uploadImage: function(prop){
				prop.success({serverId: 'test1234-serverId'});
			}, 

			downloadImage: function(prop){
				prop.success({localId: '/wx/ind/img/userheader.png'});
			}, 

			getLocation: function(prop){
				prop.success({latitude: 90, longitude: 90});
			},

			dump: ''
		};

		global.wx = wx;
	}
})(this);
